/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.gui;

import br.com.championship.ResultDay;
import java.awt.Dimension;
import java.awt.Point;
import java.awt.Rectangle;
import javax.swing.JFrame;

/**
 *
 * @author Valdigleis
 */
public class ResultatoFinal extends javax.swing.JDialog {

    private JFrame parent;
    
    private ResultDay resultDay;
    /**
     * Creates new form ResultatoFinal
     */
    public ResultatoFinal(JFrame parent, ResultDay resultDay) {
        super(parent, true);
        this.parent = parent;
        this.resultDay = resultDay;
        initComponents();
        jLabel1.setText("1º Smestre");
        jLabel2.setText("2º Smestre");
        jLabel3.setText("3º Smestre");
        jLabel4.setText("4º Smestre");
        setResizable(false);
        Rectangle parentBounds = parent.getBounds();
        Dimension size = getSize();
        // Center in the parent
        int x = Math.max(0, parentBounds.x + (parentBounds.width - size.width) / 2);
        int y = Math.max(0, parentBounds.y + (parentBounds.height - size.height) / 2);
        setLocation(new Point(x, y));
        setVisible(true);
    }

    private void updateTables(){
        /**
        jTable.setValueAt("", 0, 0);
        jTable.setValueAt("", 0, 1);
        jTable.setValueAt("", 0, 2);
        jTable.setValueAt("", 0, 3);
        jTable.setValueAt("", 0, 4);
        
        jTable.setValueAt("", 1, 0);
        jTable.setValueAt("", 1, 1);
        jTable.setValueAt("", 1, 2);
        jTable.setValueAt("", 1, 3);
        jTable.setValueAt("", 1, 4);
        
        jTable.setValueAt("", 2, 0);
        jTable.setValueAt("", 2, 1);
        jTable.setValueAt("", 2, 2);
        jTable.setValueAt("", 2, 3);
        jTable.setValueAt("", 2, 4);
        
        jTable.setValueAt("", 3, 0);
        jTable.setValueAt("", 3, 1);
        jTable.setValueAt("", 3, 2);
        jTable.setValueAt("", 3, 3);
        jTable.setValueAt("", 3, 4);
        
        
        jTable1.setValueAt("", 0, 0);
        jTable1.setValueAt("", 0, 1);
        jTable1.setValueAt("", 0, 2);
        jTable1.setValueAt("", 0, 3);
        jTable1.setValueAt("", 0, 4);
        
        jTable1.setValueAt("", 1, 0);
        jTable1.setValueAt("", 1, 1);
        jTable1.setValueAt("", 1, 2);
        jTable1.setValueAt("", 1, 3);
        jTable1.setValueAt("", 1, 4);
       
        jTable1.setValueAt("", 2, 0);
        jTable1.setValueAt("", 2, 1);
        jTable1.setValueAt("", 2, 2);
        jTable1.setValueAt("", 2, 3);
        jTable1.setValueAt("", 2, 4);
        
        jTable1.setValueAt("", 3, 0);
        jTable1.setValueAt("", 3, 1);
        jTable1.setValueAt("", 3, 2);
        jTable1.setValueAt("", 3, 3);
        jTable1.setValueAt("", 3, 4);
        
        jTable2.setValueAt("", 0, 0);
        jTable2.setValueAt("", 0, 1);
        jTable2.setValueAt("", 0, 2);
        jTable2.setValueAt("", 0, 3);
        jTable2.setValueAt("", 0, 4);
        
        jTable2.setValueAt("", 1, 0);
        jTable2.setValueAt("", 1, 1);
        jTable2.setValueAt("", 1, 2);
        jTable2.setValueAt("", 1, 3);
        jTable2.setValueAt("", 1, 4);
       
        jTable2.setValueAt("", 2, 0);
        jTable2.setValueAt("", 2, 1);
        jTable2.setValueAt("", 2, 2);
        jTable2.setValueAt("", 2, 3);
        jTable2.setValueAt("", 2, 4);
        
        jTable2.setValueAt("", 3, 0);
        jTable2.setValueAt("", 3, 1);
        jTable2.setValueAt("", 3, 2);
        jTable2.setValueAt("", 3, 3);
        jTable2.setValueAt("", 3, 4);
         
        jTable3.setValueAt("", 0, 0);
        jTable3.setValueAt("", 0, 1);
        jTable3.setValueAt("", 0, 2);
        jTable3.setValueAt("", 0, 3);
        jTable3.setValueAt("", 0, 4);
        
        jTable3.setValueAt("", 1, 0);
        jTable3.setValueAt("", 1, 1);
        jTable3.setValueAt("", 1, 2);
        jTable3.setValueAt("", 1, 3);
        jTable3.setValueAt("", 1, 4);
       
        jTable3.setValueAt("", 2, 0);
        jTable3.setValueAt("", 2, 1);
        jTable3.setValueAt("", 2, 2);
        jTable3.setValueAt("", 2, 3);
        jTable3.setValueAt("", 2, 4);
        
        jTable3.setValueAt("", 3, 0);
        jTable3.setValueAt("", 3, 1);
        jTable3.setValueAt("", 3, 2);
        jTable3.setValueAt("", 3, 3);
        jTable3.setValueAt("", 3, 4);
        **/
        
        
    }
    
    private void semesterOne(){
        jTable.setValueAt(this.resultDay.getClassRoom1().get(0).getDiscipline().getName(), 0, 0);
        jTable.setValueAt(this.resultDay.getClassRoom1().get(0).getDiscipline().getName(), 1, 0);
        jTable.setValueAt(this.resultDay.getClassRoom1().get(1).getDiscipline().getName(), 2, 0);
        jTable.setValueAt(this.resultDay.getClassRoom1().get(1).getDiscipline().getName(), 3, 0);
        
        jTable.setValueAt(this.resultDay.getClassRoom1().get(2).getDiscipline().getName(), 0, 1);
        jTable.setValueAt(this.resultDay.getClassRoom1().get(2).getDiscipline().getName(), 1, 1);
        jTable.setValueAt(this.resultDay.getClassRoom1().get(3).getDiscipline().getName(), 2, 1);
        jTable.setValueAt(this.resultDay.getClassRoom1().get(3).getDiscipline().getName(), 3, 1);
        
        jTable.setValueAt(this.resultDay.getClassRoom1().get(4).getDiscipline().getName(), 0, 2);
        jTable.setValueAt(this.resultDay.getClassRoom1().get(4).getDiscipline().getName(), 1, 2);
        jTable.setValueAt(this.resultDay.getClassRoom1().get(5).getDiscipline().getName(), 2, 2);
        jTable.setValueAt(this.resultDay.getClassRoom1().get(5).getDiscipline().getName(), 3, 2);
        
        jTable.setValueAt(this.resultDay.getClassRoom1().get(6).getDiscipline().getName(), 0, 3);
        jTable.setValueAt(this.resultDay.getClassRoom1().get(6).getDiscipline().getName(), 1, 3);
        jTable.setValueAt(this.resultDay.getClassRoom1().get(7).getDiscipline().getName(), 2, 3);
        jTable.setValueAt(this.resultDay.getClassRoom1().get(7).getDiscipline().getName(), 3, 3);
        
        jTable.setValueAt(this.resultDay.getClassRoom1().get(8).getDiscipline().getName(), 0, 4);
        jTable.setValueAt(this.resultDay.getClassRoom1().get(8).getDiscipline().getName(), 1, 4);
        jTable.setValueAt(this.resultDay.getClassRoom1().get(9).getDiscipline().getName(), 2, 4);
        jTable.setValueAt(this.resultDay.getClassRoom1().get(9).getDiscipline().getName(), 3, 4);
    }
    
    private void semesterTwo(){
        jTable1.setValueAt(this.resultDay.getClassRoom2().get(0).getDiscipline().getName(), 0, 0);
        jTable1.setValueAt(this.resultDay.getClassRoom2().get(0).getDiscipline().getName(), 1, 0);
        jTable1.setValueAt(this.resultDay.getClassRoom2().get(1).getDiscipline().getName(), 2, 0);
        jTable1.setValueAt(this.resultDay.getClassRoom2().get(1).getDiscipline().getName(), 3, 0);
        
        jTable1.setValueAt(this.resultDay.getClassRoom2().get(2).getDiscipline().getName(), 0, 1);
        jTable1.setValueAt(this.resultDay.getClassRoom2().get(2).getDiscipline().getName(), 1, 1);
        jTable1.setValueAt(this.resultDay.getClassRoom2().get(3).getDiscipline().getName(), 2, 1);
        jTable1.setValueAt(this.resultDay.getClassRoom2().get(3).getDiscipline().getName(), 3, 1);
        
        jTable1.setValueAt(this.resultDay.getClassRoom2().get(4).getDiscipline().getName(), 0, 2);
        jTable1.setValueAt(this.resultDay.getClassRoom2().get(4).getDiscipline().getName(), 1, 2);
        jTable1.setValueAt(this.resultDay.getClassRoom2().get(5).getDiscipline().getName(), 2, 2);
        jTable1.setValueAt(this.resultDay.getClassRoom2().get(5).getDiscipline().getName(), 3, 2);
        
        jTable1.setValueAt(this.resultDay.getClassRoom2().get(6).getDiscipline().getName(), 0, 3);
        jTable1.setValueAt(this.resultDay.getClassRoom2().get(6).getDiscipline().getName(), 1, 3);
        jTable1.setValueAt(this.resultDay.getClassRoom2().get(7).getDiscipline().getName(), 2, 3);
        jTable1.setValueAt(this.resultDay.getClassRoom2().get(7).getDiscipline().getName(), 3, 3);
        
        jTable1.setValueAt(this.resultDay.getClassRoom2().get(8).getDiscipline().getName(), 0, 4);
        jTable1.setValueAt(this.resultDay.getClassRoom2().get(8).getDiscipline().getName(), 1, 4);
        jTable1.setValueAt(this.resultDay.getClassRoom2().get(9).getDiscipline().getName(), 2, 4);
        jTable1.setValueAt(this.resultDay.getClassRoom2().get(9).getDiscipline().getName(), 3, 4);
    }
    
    private void semesterTree(){
        jTable2.setValueAt(this.resultDay.getClassRoom3().get(0).getDiscipline().getName(), 0, 0);
        jTable2.setValueAt(this.resultDay.getClassRoom3().get(0).getDiscipline().getName(), 1, 0);
        jTable2.setValueAt(this.resultDay.getClassRoom3().get(1).getDiscipline().getName(), 2, 0);
        jTable2.setValueAt(this.resultDay.getClassRoom3().get(1).getDiscipline().getName(), 3, 0);
        
        jTable2.setValueAt(this.resultDay.getClassRoom3().get(2).getDiscipline().getName(), 0, 1);
        jTable2.setValueAt(this.resultDay.getClassRoom3().get(2).getDiscipline().getName(), 1, 1);
        jTable2.setValueAt(this.resultDay.getClassRoom3().get(3).getDiscipline().getName(), 2, 1);
        jTable2.setValueAt(this.resultDay.getClassRoom3().get(3).getDiscipline().getName(), 3, 1);
        
        jTable2.setValueAt(this.resultDay.getClassRoom3().get(4).getDiscipline().getName(), 0, 2);
        jTable2.setValueAt(this.resultDay.getClassRoom3().get(4).getDiscipline().getName(), 1, 2);
        jTable2.setValueAt(this.resultDay.getClassRoom3().get(5).getDiscipline().getName(), 2, 2);
        jTable2.setValueAt(this.resultDay.getClassRoom3().get(5).getDiscipline().getName(), 3, 2);
        
        jTable2.setValueAt(this.resultDay.getClassRoom3().get(6).getDiscipline().getName(), 0, 3);
        jTable2.setValueAt(this.resultDay.getClassRoom3().get(6).getDiscipline().getName(), 1, 3);
        jTable2.setValueAt(this.resultDay.getClassRoom3().get(7).getDiscipline().getName(), 2, 3);
        jTable2.setValueAt(this.resultDay.getClassRoom3().get(7).getDiscipline().getName(), 3, 3);
        
        jTable2.setValueAt(this.resultDay.getClassRoom3().get(8).getDiscipline().getName(), 0, 4);
        jTable2.setValueAt(this.resultDay.getClassRoom3().get(8).getDiscipline().getName(), 1, 4);
        jTable2.setValueAt(this.resultDay.getClassRoom3().get(9).getDiscipline().getName(), 2, 4);
        jTable2.setValueAt(this.resultDay.getClassRoom3().get(9).getDiscipline().getName(), 3, 4);
    }
    
    private void semesterFour(){
        jTable3.setValueAt(this.resultDay.getClassRoom4().get(0).getDiscipline().getName(), 0, 0);
        jTable3.setValueAt(this.resultDay.getClassRoom4().get(0).getDiscipline().getName(), 1, 0);
        jTable3.setValueAt(this.resultDay.getClassRoom4().get(1).getDiscipline().getName(), 2, 0);
        jTable3.setValueAt(this.resultDay.getClassRoom4().get(1).getDiscipline().getName(), 3, 0);
        
        jTable3.setValueAt(this.resultDay.getClassRoom4().get(2).getDiscipline().getName(), 0, 1);
        jTable3.setValueAt(this.resultDay.getClassRoom4().get(2).getDiscipline().getName(), 1, 1);
        jTable3.setValueAt(this.resultDay.getClassRoom4().get(3).getDiscipline().getName(), 2, 1);
        jTable3.setValueAt(this.resultDay.getClassRoom4().get(3).getDiscipline().getName(), 3, 1);
        
        jTable3.setValueAt(this.resultDay.getClassRoom4().get(4).getDiscipline().getName(), 0, 2);
        jTable3.setValueAt(this.resultDay.getClassRoom4().get(4).getDiscipline().getName(), 1, 2);
        jTable3.setValueAt(this.resultDay.getClassRoom4().get(5).getDiscipline().getName(), 2, 2);
        jTable3.setValueAt(this.resultDay.getClassRoom4().get(5).getDiscipline().getName(), 3, 2);
        
        jTable3.setValueAt(this.resultDay.getClassRoom4().get(6).getDiscipline().getName(), 0, 3);
        jTable3.setValueAt(this.resultDay.getClassRoom4().get(6).getDiscipline().getName(), 1, 3);
        jTable3.setValueAt(this.resultDay.getClassRoom4().get(7).getDiscipline().getName(), 2, 3);
        jTable3.setValueAt(this.resultDay.getClassRoom4().get(7).getDiscipline().getName(), 3, 3);
       
        jTable3.setValueAt(this.resultDay.getClassRoom4().get(8).getDiscipline().getName(), 0, 4);
        jTable3.setValueAt(this.resultDay.getClassRoom4().get(8).getDiscipline().getName(), 1, 4);
        jTable3.setValueAt(this.resultDay.getClassRoom4().get(9).getDiscipline().getName(), 2, 4);
        jTable3.setValueAt(this.resultDay.getClassRoom4().get(9).getDiscipline().getName(), 3, 4);
    }
    
    private void pagOne(){
        jLabel1.setText("1º Semestre");
        jTable.removeAll();
        semesterOne();
        
        jLabel2.setText("2º Semestre");
        jTable1.removeAll();
        semesterTwo();
        
        jLabel3.setText("3º Semestre");
        jTable2.removeAll();
        semesterTree();
        
        jLabel4.setText("4º Semestre");
        jTable3.removeAll();
        semesterFour();
    }
    
    private void pagTwo(){
        updateTables();
        jLabel1.setText("5º Semestre");
        jTable.setValueAt(this.resultDay.getClassRoom5().get(0).getDiscipline().getName(), 0, 0);
        jTable.setValueAt(this.resultDay.getClassRoom5().get(1).getDiscipline().getName(), 0, 1);
        jTable.setValueAt(this.resultDay.getClassRoom5().get(2).getDiscipline().getName(), 0, 2);
        jTable.setValueAt(this.resultDay.getClassRoom5().get(3).getDiscipline().getName(), 0, 3);
        jTable.setValueAt(this.resultDay.getClassRoom5().get(4).getDiscipline().getName(), 0, 4);
        jTable.setValueAt(this.resultDay.getClassRoom5().get(0).getDiscipline().getName(), 1, 0);
        jTable.setValueAt(this.resultDay.getClassRoom5().get(1).getDiscipline().getName(), 1, 1);
        jTable.setValueAt(this.resultDay.getClassRoom5().get(2).getDiscipline().getName(), 1, 2);
        jTable.setValueAt(this.resultDay.getClassRoom5().get(3).getDiscipline().getName(), 1, 3);
        jTable.setValueAt(this.resultDay.getClassRoom5().get(4).getDiscipline().getName(), 1, 4);
        jTable.setValueAt(this.resultDay.getClassRoom5().get(5).getDiscipline().getName(), 2, 0);
        jTable.setValueAt(this.resultDay.getClassRoom5().get(6).getDiscipline().getName(), 2, 1);
        jTable.setValueAt(this.resultDay.getClassRoom5().get(7).getDiscipline().getName(), 2, 2);
        jTable.setValueAt(this.resultDay.getClassRoom5().get(8).getDiscipline().getName(), 2, 3);
        jTable.setValueAt(this.resultDay.getClassRoom5().get(9).getDiscipline().getName(), 2, 4);
        jTable.setValueAt(this.resultDay.getClassRoom5().get(5).getDiscipline().getName(), 3, 0);
        jTable.setValueAt(this.resultDay.getClassRoom5().get(6).getDiscipline().getName(), 3, 1);
        jTable.setValueAt(this.resultDay.getClassRoom5().get(7).getDiscipline().getName(), 3, 2);
        jTable.setValueAt(this.resultDay.getClassRoom5().get(8).getDiscipline().getName(), 3, 3);
        jTable.setValueAt(this.resultDay.getClassRoom5().get(9).getDiscipline().getName(), 3, 4);
        
        jLabel2.setText("6º Smestre");
        jTable1.setValueAt(this.resultDay.getClassRoom6().get(0).getDiscipline().getName(), 0, 0);
        jTable1.setValueAt(this.resultDay.getClassRoom6().get(1).getDiscipline().getName(), 0, 1);
        jTable1.setValueAt(this.resultDay.getClassRoom6().get(2).getDiscipline().getName(), 0, 2);
        jTable1.setValueAt(this.resultDay.getClassRoom6().get(3).getDiscipline().getName(), 0, 3);
        jTable1.setValueAt(this.resultDay.getClassRoom6().get(4).getDiscipline().getName(), 0, 4);
        jTable1.setValueAt(this.resultDay.getClassRoom6().get(0).getDiscipline().getName(), 1, 0);
        jTable1.setValueAt(this.resultDay.getClassRoom6().get(1).getDiscipline().getName(), 1, 1);
        jTable1.setValueAt(this.resultDay.getClassRoom6().get(2).getDiscipline().getName(), 1, 2);
        jTable1.setValueAt(this.resultDay.getClassRoom6().get(3).getDiscipline().getName(), 1, 3);
        jTable1.setValueAt(this.resultDay.getClassRoom6().get(4).getDiscipline().getName(), 1, 4);
        jTable1.setValueAt(this.resultDay.getClassRoom6().get(5).getDiscipline().getName(), 2, 0);
        jTable1.setValueAt(this.resultDay.getClassRoom6().get(6).getDiscipline().getName(), 2, 1);
        jTable1.setValueAt(this.resultDay.getClassRoom6().get(7).getDiscipline().getName(), 2, 2);
        jTable1.setValueAt(this.resultDay.getClassRoom6().get(8).getDiscipline().getName(), 2, 3);
        jTable1.setValueAt(this.resultDay.getClassRoom6().get(9).getDiscipline().getName(), 2, 4);
        jTable1.setValueAt(this.resultDay.getClassRoom6().get(5).getDiscipline().getName(), 3, 0);
        jTable1.setValueAt(this.resultDay.getClassRoom6().get(6).getDiscipline().getName(), 3, 1);
        jTable1.setValueAt(this.resultDay.getClassRoom6().get(7).getDiscipline().getName(), 3, 2);
        jTable1.setValueAt(this.resultDay.getClassRoom6().get(8).getDiscipline().getName(), 3, 3);
        jTable1.setValueAt(this.resultDay.getClassRoom6().get(9).getDiscipline().getName(), 3, 4);
       
        jLabel3.setText("7º Smestre");
        jTable2.setValueAt(this.resultDay.getClassRoom7().get(0).getDiscipline().getName(), 0, 0);
        jTable2.setValueAt(this.resultDay.getClassRoom7().get(1).getDiscipline().getName(), 0, 1);
        jTable2.setValueAt(this.resultDay.getClassRoom7().get(2).getDiscipline().getName(), 0, 2);
        jTable2.setValueAt(this.resultDay.getClassRoom7().get(3).getDiscipline().getName(), 0, 3);
        jTable2.setValueAt(this.resultDay.getClassRoom7().get(4).getDiscipline().getName(), 0, 4);
        jTable2.setValueAt(this.resultDay.getClassRoom7().get(0).getDiscipline().getName(), 1, 0);
        jTable2.setValueAt(this.resultDay.getClassRoom7().get(1).getDiscipline().getName(), 1, 1);
        jTable2.setValueAt(this.resultDay.getClassRoom7().get(2).getDiscipline().getName(), 1, 2);
        jTable2.setValueAt(this.resultDay.getClassRoom7().get(3).getDiscipline().getName(), 1, 3);
        jTable2.setValueAt(this.resultDay.getClassRoom7().get(4).getDiscipline().getName(), 1, 4);
        jTable2.setValueAt(this.resultDay.getClassRoom7().get(5).getDiscipline().getName(), 2, 0);
        jTable2.setValueAt(this.resultDay.getClassRoom7().get(6).getDiscipline().getName(), 2, 1);
        jTable2.setValueAt(this.resultDay.getClassRoom7().get(7).getDiscipline().getName(), 2, 2);
        jTable2.setValueAt(this.resultDay.getClassRoom7().get(8).getDiscipline().getName(), 2, 3);
        jTable2.setValueAt(this.resultDay.getClassRoom7().get(9).getDiscipline().getName(), 2, 4);
        jTable2.setValueAt(this.resultDay.getClassRoom7().get(5).getDiscipline().getName(), 3, 0);
        jTable2.setValueAt(this.resultDay.getClassRoom7().get(6).getDiscipline().getName(), 3, 1);
        jTable2.setValueAt(this.resultDay.getClassRoom7().get(7).getDiscipline().getName(), 3, 2);
        jTable2.setValueAt(this.resultDay.getClassRoom7().get(8).getDiscipline().getName(), 3, 3);
        jTable2.setValueAt(this.resultDay.getClassRoom7().get(9).getDiscipline().getName(), 3, 4);
       
        jLabel4.setText("8º Smestre");
        jTable3.setValueAt(this.resultDay.getClassRoom8().get(0).getDiscipline().getName(), 0, 0);
        jTable3.setValueAt(this.resultDay.getClassRoom8().get(1).getDiscipline().getName(), 0, 1);
        jTable3.setValueAt(this.resultDay.getClassRoom8().get(2).getDiscipline().getName(), 0, 2);
        jTable3.setValueAt(this.resultDay.getClassRoom8().get(3).getDiscipline().getName(), 0, 3);
        jTable3.setValueAt(this.resultDay.getClassRoom8().get(4).getDiscipline().getName(), 0, 4);
        jTable3.setValueAt(this.resultDay.getClassRoom8().get(0).getDiscipline().getName(), 1, 0);
        jTable3.setValueAt(this.resultDay.getClassRoom8().get(1).getDiscipline().getName(), 1, 1);
        jTable3.setValueAt(this.resultDay.getClassRoom8().get(2).getDiscipline().getName(), 1, 2);
        jTable3.setValueAt(this.resultDay.getClassRoom8().get(3).getDiscipline().getName(), 1, 3);
        jTable3.setValueAt(this.resultDay.getClassRoom8().get(4).getDiscipline().getName(), 1, 4);
        jTable3.setValueAt(this.resultDay.getClassRoom8().get(5).getDiscipline().getName(), 2, 0);
        jTable3.setValueAt(this.resultDay.getClassRoom8().get(6).getDiscipline().getName(), 2, 1);
        jTable3.setValueAt(this.resultDay.getClassRoom8().get(7).getDiscipline().getName(), 2, 2);
        jTable3.setValueAt(this.resultDay.getClassRoom8().get(8).getDiscipline().getName(), 2, 3);
        jTable3.setValueAt(this.resultDay.getClassRoom8().get(9).getDiscipline().getName(), 2, 4);
        jTable3.setValueAt(this.resultDay.getClassRoom8().get(5).getDiscipline().getName(), 3, 0);
        jTable3.setValueAt(this.resultDay.getClassRoom8().get(6).getDiscipline().getName(), 3, 1);
        jTable3.setValueAt(this.resultDay.getClassRoom8().get(7).getDiscipline().getName(), 3, 2);
        jTable3.setValueAt(this.resultDay.getClassRoom8().get(8).getDiscipline().getName(), 3, 3);
        jTable3.setValueAt(this.resultDay.getClassRoom8().get(9).getDiscipline().getName(), 3, 4);
    }
    
    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jScrollPane2 = new javax.swing.JScrollPane();
        jTable = new javax.swing.JTable();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jScrollPane1 = new javax.swing.JScrollPane();
        jTable1 = new javax.swing.JTable();
        jLabel3 = new javax.swing.JLabel();
        jScrollPane3 = new javax.swing.JScrollPane();
        jTable2 = new javax.swing.JTable();
        jLabel4 = new javax.swing.JLabel();
        jScrollPane4 = new javax.swing.JScrollPane();
        jTable3 = new javax.swing.JTable();
        jButton1 = new javax.swing.JButton();
        jButton2 = new javax.swing.JButton();
        jButton3 = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("Resultado");

        jTable.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null}
            },
            new String [] {
                "Segunda", "Terça", "Quarta", "Quinta", "Sexta"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jScrollPane2.setViewportView(jTable);

        jLabel1.setText("1º Semestre");

        jLabel2.setText("2º Semestre");

        jTable1.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null}
            },
            new String [] {
                "Segunda", "Terça", "Quarta", "Quinta", "Sexta"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jScrollPane1.setViewportView(jTable1);

        jLabel3.setText("3º Smestre");

        jTable2.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null}
            },
            new String [] {
                "Segunda", "Terça", "Quarta", "Quinta", "Sexta"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jScrollPane3.setViewportView(jTable2);

        jLabel4.setText("4º Smestre");

        jTable3.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null},
                {null, null, null, null, null}
            },
            new String [] {
                "Segunda", "Terça", "Quarta", "Quinta", "Sexta"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jScrollPane4.setViewportView(jTable3);

        jButton1.setText("Voltar");
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });

        jButton2.setText("Exibir do 1º ao 4º periodo");
        jButton2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton2ActionPerformed(evt);
            }
        });

        jButton3.setText("Exibir do 5º ao 8º periodo");
        jButton3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton3ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addComponent(jScrollPane2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 931, Short.MAX_VALUE)
                            .addComponent(jScrollPane1, javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jScrollPane3, javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jScrollPane4))
                        .addContainerGap())
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addGap(0, 0, Short.MAX_VALUE)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                                .addComponent(jLabel1)
                                .addGap(442, 442, 442))
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                                .addComponent(jLabel2)
                                .addGap(443, 443, 443))
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                                .addComponent(jLabel3)
                                .addGap(451, 451, 451))
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                                .addComponent(jLabel4)
                                .addGap(461, 461, 461))))))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jButton1)
                .addGap(448, 448, 448))
            .addGroup(layout.createSequentialGroup()
                .addGap(297, 297, 297)
                .addComponent(jButton2)
                .addGap(79, 79, 79)
                .addComponent(jButton3)
                .addContainerGap(279, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jLabel1)
                .addGap(3, 3, 3)
                .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 93, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel2)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel3)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 98, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel4)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButton2)
                    .addComponent(jButton3))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jButton1)
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed
        pagOne();
    }//GEN-LAST:event_jButton2ActionPerformed

    private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed
        pagTwo();
    }//GEN-LAST:event_jButton3ActionPerformed

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        this.dispose();
    }//GEN-LAST:event_jButton1ActionPerformed

    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton2;
    private javax.swing.JButton jButton3;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JScrollPane jScrollPane4;
    private javax.swing.JTable jTable;
    private javax.swing.JTable jTable1;
    private javax.swing.JTable jTable2;
    private javax.swing.JTable jTable3;
    // End of variables declaration//GEN-END:variables
}
